package com.eliza.net

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.net.activity.AssetsActivity
import com.eliza.net.activity.WifiActivity
import com.eliza.net.activity.OkHttpActivity
import com.eliza.net.activity.WebViewActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<Button>(R.id.main_to_assets_json).setOnClickListener {
            startActivity(Intent(this, AssetsActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_onHttp3).setOnClickListener {
            startActivity(Intent(this, OkHttpActivity::class.java))

        }
        findViewById<Button>(R.id.main_to_WebView).setOnClickListener {
            startActivity(Intent(this, WebViewActivity::class.java))

        }
        findViewById<Button>(R.id.main_to_Wifi).setOnClickListener {
            startActivity(Intent(this,WifiActivity::class.java))

        }
    }
}